import yaml


def getyaml(path):
    f = open(path, encoding="utf8")
    reslut=yaml.load(f)
    f.close()
    return reslut




if __name__ == '__main__':
    print(getyaml('/Users/luanzhicheng/app_auto_test/data/element/loginelement.yaml'))